/**
 * @author Bernhard Denner
 * @author Maximilian Csuk
 * @author Konrad Paumann
 */
public class Server extends Computer {
	private int powerConsumption;
	
	public Server(int RAMSize, int diskSize, int programRuntime, int powerConsumption) {
		super(RAMSize, diskSize, programRuntime);
		this.powerConsumption = powerConsumption;
	}
	/**
	 * Gets the power consumption of the server.
	 */
	public int getPowerConsuption() {
		return powerConsumption;
	}
	/**
	 * Returns a string representation of the server.
	 */
	public String toString() {
		return super.toString() + "| Consumption: " 
			+ Double.toString(powerConsumption);
	}
}
